package com.zyy.array;
import java.util.Scanner;
public class OneArrayTest {
    public static void main(String[] args){
        //1.动态声明数组
        double[] prices;
        //数组初始化
        prices = new double[]{1.2,1.1};
        //2.静态声明数组
        String[] food = new String[4];
        for(int i = 0; i < food.length;i++){
            System.out.println(food[i]);
        }
        
    }
}
